package com.wuage.interfaces.account.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @author Shynin
 * @version 1.0
 * @date 2020-09-13 16:14
 */
@Data
@ApiModel("用户修改密码对象")
public class AccountPasswordResetDO {

    @Length(min = 4, max = 4, message = "验证码只能是4位")
    @ApiModelProperty(value = "验证码", required = true)
    private String authCode;

    @Length(min = 6, max = 16, message = "密码必须在6到16位之间")
    @ApiModelProperty(value = "密码", required = true)
    private String password;

    @Length(min = 6, max = 16, message = "确认密码必须在6到16位之间")
    @ApiModelProperty(value = "确认密码", required = true)
    private String confirmPassword;
}
